import request from '@/utils/request'

export const booksBorrowedList = (params: any) => {
  return request({
    method: 'get',
    url: '/api/mini-library/records',
    params,
  })
}

export const bookReturn = (id: number) => {
  return request({
    method: 'put',
    url: `/api/mini-library/return/${id}`,
  })
}
